import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'normalize.css/normalize.css'
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Components from '@/components'
import '@/permission.js'
import '@/styles/index.less'
import echarts from 'echarts'

import * as filters from '@/filters'
// 注册全局的过滤器
Object.keys(filters).forEach(key => {
  // 注册过滤器
  Vue.filter(key, filters[key])
})

Vue.config.productionTip = false
Vue.use(Components)
Vue.prototype.$echarts = echarts
Vue.use(ElementUi)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
